import { App } from "vue";

export default function(app: App) {
  let files = import.meta.glob('./*.ts')
  for (let i in files) {
    files[i]().then((res: any) => {
      const name = i.replace(/(\.\/|\.ts)/g, '')
      app.directive(name, res.default)
    })
  }
}